home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / Development / PowerD / powerd / modules.lha / modules / devices / printer.m < prev    next >
Encoding:
Text File  |  2002-01-02  |  5.4 KB  |  235 lines

  1. MODULE 'exec/devices','intuition/intuition','utility/tagitem','prefs/printergfx','prefs/printertxt'
  2. #define PRD_RAWWRITE    (CMD_NONSTD+0)
  3. #define PRD_PRTCOMMAND    (CMD_NONSTD+1)
  4. #define PRD_DUMPRPORT     (CMD_NONSTD+2)
  5. #define PRD_QUERY     (CMD_NONSTD+3)
  6. #define PRD_RESETPREFS    (CMD_NONSTD+4)
  7. #define PRD_LOADPREFS     (CMD_NONSTD+5)
  8. #define PRD_USEPREFS    (CMD_NONSTD+6)
  9. #define PRD_SAVEPREFS     (CMD_NONSTD+7)
  10. #define PRD_READPREFS     (CMD_NONSTD+8)
  11. #define PRD_WRITEPREFS    (CMD_NONSTD+9)
  12. #define PRD_EDITPREFS     (CMD_NONSTD+10)
  13. #define PRD_SETERRHOOK    (CMD_NONSTD+11)
  14. #define PRD_DUMPRPORTTAGS   (CMD_NONSTD+12)
  15. #define aRIS  0
  16. #define aRIN  1
  17. #define aIND  2
  18. #define aNEL  3
  19. #define aRI   4
  20. #define aSGR0   5
  21. #define aSGR3   6
  22. #define aSGR23  7
  23. #define aSGR4   8
  24. #define aSGR24  9
  25. #define aSGR1   10
  26. #define aSGR22  11
  27. #define aSFC  12
  28. #define aSBC  13
  29. #define aSHORP0   14
  30. #define aSHORP2   15
  31. #define aSHORP1   16
  32. #define aSHORP4   17
  33. #define aSHORP3   18
  34. #define aSHORP6   19
  35. #define aSHORP5   20
  36. #define aDEN6   21
  37. #define aDEN5   22
  38. #define aDEN4   23
  39. #define aDEN3   24
  40. #define aDEN2   25
  41. #define aDEN1   26
  42. #define aSUS2   27
  43. #define aSUS1   28
  44. #define aSUS4   29
  45. #define aSUS3   30
  46. #define aSUS0   31
  47. #define aPLU  32
  48. #define aPLD  33
  49. #define aFNT0   34
  50. #define aFNT1   35
  51. #define aFNT2   36
  52. #define aFNT3   37
  53. #define aFNT4   38
  54. #define aFNT5   39
  55. #define aFNT6   40
  56. #define aFNT7   41
  57. #define aFNT8   42
  58. #define aFNT9   43
  59. #define aFNT10  44
  60. #define aPROP2  45
  61. #define aPROP1  46
  62. #define aPROP0  47
  63. #define aTSS  48
  64. #define aJFY5   49
  65. #define aJFY7   50
  66. #define aJFY6   51
  67. #define aJFY0   52
  68. #define aJFY3   53
  69. #define aJFY1   54
  70. #define aVERP0  55
  71. #define aVERP1  56
  72. #define aSLPP   57
  73. #define aPERF   58
  74. #define aPERF0  59
  75. #define aLMS  60
  76. #define aRMS  61
  77. #define aTMS  62
  78. #define aBMS  63
  79. #define aSTBM   64
  80. #define aSLRM   65
  81. #define aCAM  66
  82. #define aHTS  67
  83. #define aVTS  68
  84. #define aTBC0   69
  85. #define aTBC3   70
  86. #define aTBC1   71
  87. #define aTBC4   72
  88. #define aTBCALL   73
  89. #define aTBSALL   74
  90. #define aEXTEND   75
  91. #define aRAW  76
  92. OBJECT IOPrtCmdReq
  93.   Message:Message,
  94.   Device:PTR TO Device,
  95.   Unit:PTR TO Unit,
  96.   Command:UWORD,
  97.   Flags:UBYTE,
  98.   Error:BYTE,
  99.   PrtCommand:UWORD,
  100.   Parm0:UBYTE,
  101.   Parm1:UBYTE,
  102.   Parm2:UBYTE,
  103.   Parm3:UBYTE
  104.  
  105. OBJECT IODRPReq
  106.   Message:Message,
  107.   Device:PTR TO Device,
  108.   Unit:PTR TO Unit,
  109.   Command:UWORD,
  110.   Flags:UBYTE,
  111.   Error:BYTE,
  112.   RastPort:PTR TO RastPort,
  113.   ColorMap:PTR TO ColorMap,
  114.   Modes:ULONG,
  115.   SrcX:UWORD,
  116.   SrcY:UWORD,
  117.   SrcWidth:UWORD,
  118.   SrcHeight:UWORD,
  119.   DestCols:LONG,
  120.   DestRows:LONG,
  121.   Special:UWORD
  122.  
  123. OBJECT IODRPTagsReq
  124.   Message:Message,
  125.   Device:PTR TO Device,
  126.   Unit:PTR TO Unit,
  127.   Command:UWORD,
  128.   Flags:UBYTE,
  129.   Error:BYTE,
  130.   RastPort:PTR TO RastPort,
  131.   ColorMap:PTR TO ColorMap,
  132.   Modes:ULONG,
  133.   SrcX:UWORD,
  134.   SrcY:UWORD,
  135.   SrcWidth:UWORD,
  136.   SrcHeight:UWORD,
  137.   DestCols:LONG,
  138.   DestRows:LONG,
  139.   Special:UWORD,
  140.   TagList:PTR TO TagItem
  141.  
  142. #define SPECIAL_MILCOLS     $0001 
  143. #define SPECIAL_MILROWS     $0002 
  144. #define SPECIAL_FULLCOLS  $0004 
  145. #define SPECIAL_FULLROWS  $0008 
  146. #define SPECIAL_FRACCOLS  $0010 
  147. #define SPECIAL_FRACROWS  $0020 
  148. #define SPECIAL_CENTER    $0040 
  149. #define SPECIAL_ASPECT    $0080 
  150. #define SPECIAL_DENSITY1  $0100 
  151. #define SPECIAL_DENSITY2  $0200 
  152. #define SPECIAL_DENSITY3  $0300 
  153. #define SPECIAL_DENSITY4  $0400 
  154. #define SPECIAL_DENSITY5  $0500 
  155. #define SPECIAL_DENSITY6  $0600 
  156. #define SPECIAL_DENSITY7  $0700 
  157. #define SPECIAL_NOFORMFEED  $0800 
  158. #define SPECIAL_TRUSTME     $1000 
  159. #define SPECIAL_NOPRINT     $2000 
  160. #define PDERR_NOERR     0
  161. #define PDERR_CANCEL    1
  162. #define PDERR_NOTGRAPHICS   2
  163. #define PDERR_INVERTHAM     3
  164. #define PDERR_BADDIMENSION  4
  165. #define PDERR_DIMENSIONOVFLOW   5
  166. #define PDERR_INTERNALMEMORY  6
  167. #define PDERR_BUFFERMEMORY  7
  168. #define PDERR_TOOKCONTROL   8
  169. #define PDERR_BADPREFERENCES  9
  170. #define PDERR_LASTSTANDARD  31
  171. #define PDERR_FIRSTCUSTOM   32
  172. #define PDERR_LASTCUSTOM  126
  173. #define SPECIAL_DENSITYMASK   $0700 
  174. #define SPECIAL_DIMENSIONSMASK  \
  175.  (SPECIAL_MILCOLS|SPECIAL_MILROWS|SPECIAL_FULLCOLS|SPECIAL_FULLROWS\
  176.  |SPECIAL_FRACCOLS|SPECIAL_FRACROWS|SPECIAL_ASPECT)
  177. #define DRPA_Dummy  (TAG_USER + $60000)
  178. #define DRPA_ICCProfile     (DRPA_Dummy+1)
  179. #define DRPA_ICCName    (DRPA_Dummy+2)
  180. #define DRPA_NoColCorrect   (DRPA_Dummy+3)
  181. #define DRPA_SourceHook    (DRPA_Dummy+4)
  182. OBJECT DRPSourceMsg
  183.   x:LONG,
  184.   y:LONG,
  185.   width:LONG,
  186.   height:LONG,
  187.   buf:PTR TO ULONG
  188.  
  189. #define DRPA_AspectX       (DRPA_Dummy+5)
  190. #define DRPA_AspectY       (DRPA_Dummy+6)
  191. #define PPRA_Dummy  (TAG_USER + $70000)
  192. OBJECT IOPrtPrefsReq
  193.   Message:Message,
  194.   Device:PTR TO Device,
  195.   Unit:PTR TO Unit,
  196.   Command:UWORD,
  197.   Flags:UBYTE,
  198.   Error:BYTE,
  199.   TagList:PTR TO TagItem
  200.  
  201. #define PPRA_Window   (PPRA_Dummy+1)
  202. #define PPRA_Screen   (PPRA_Dummy+2)
  203. #define PPRA_PubScreen  (PPRA_Dummy+3)
  204. #define PDHOOK_NONE   ((struct Hook *) NULL)
  205. #define PDHOOK_STD  ((struct Hook *) 1)
  206. OBJECT IOPrtErrReq
  207.   Message:Message,
  208.   Device:PTR TO Device,
  209.   Unit:PTR TO Unit,
  210.   Command:UWORD,
  211.   Flags:UBYTE,
  212.   Error:BYTE,
  213.   Hook:PTR TO Hook
  214.  
  215. OBJECT PrtErrMsg
  216.   Version:ULONG,
  217.   ErrorLevel:ULONG,
  218.   Window:PTR TO Window,
  219.   ES:PTR TO EasyStruct,
  220.   IDCMP:PTR TO ULONG,
  221.   ArgList:PTR
  222.  
  223. #define PDHOOK_VERSION  1
  224. OBJECT IOPrefsReq
  225.   Message:Message,
  226.   Device:PTR TO Device,
  227.   Unit:PTR TO Unit,
  228.   Command:UWORD,
  229.   Flags:UBYTE,
  230.   Error:BYTE,
  231.   TxtPrefs:PTR TO PrinterTxtPrefs,
  232.   UnitPrefs:PTR TO PrinterUnitPrefs,
  233.   DevUnitPrefs:PTR TO PrinterDeviceUnitPrefs,
  234.   GfxPrefs:PTR TO PrinterGfxPrefs
  235.